package fish.web.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import fish.web.service.HomeService;

@Controller
public class HomeController {
    
    @Autowired
    private HomeService service = null;
    
    @RequestMapping(value = {"/"})
    public String showHomePage(Map<String, Object> modal) {
	String value = service.sayHello("shenzhang");
	System.out.println(value);
	
	return "index";
    }
}
